import { Version } from '@microsoft/sp-core-library'; import { IPropertyPaneConfiguration, PropertyPaneTextField } from '@microsoft/sp-property-pane'; import { BaseClientSideWebPart } from '@microsoft/sp-webpart-base'; import { escape } from '@microsoft/sp-lodash-subset'; import styles from './<%= componentClassName %>.module.scss'; import * as strings from '<%= componentStrings %>'; export interface I<%= componentClassName %>Props { description: string; } export default class <%= componentClassName %> extends BaseClientSideWebPartProps> { public render(): void { this.domElement.innerHTML = `
Welcome to SharePoint!

Customize SharePoint experiences using Web Parts.

${escape(this.properties.description)}

Learn more
`; } protected get dataVersion(): Version { return Version.parse('1.0'); } protected getPropertyPaneConfiguration(): IPropertyPaneConfiguration { return { pages: [ { header: { description: strings.PropertyPaneDescription }, groups: [ { groupName: strings.BasicGroupName, groupFields: [ PropertyPaneTextField('description', { label: strings.DescriptionFieldLabel }) ] } ] } ] }; } }